<div>
  <canvas #canvas width="300" height="200" style="border: 1px dashed gray;"></canvas>
</div>
<div>
  <span>文本长度为{{length}}px</span>
</div>
